/*
 * @Author: yangni 920556271@qq.com
 * @Date: 2023-12-07 09:26:03
 * @LastEditors: yangni 920556271@qq.com
 * @LastEditTime: 2023-12-29 09:19:03
 * @FilePath: /yt-devops/lib/model/device_obj/services_model.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:json_annotation/json_annotation.dart';
import 'package:yt_devops/model/device_obj/output_data_model.dart';
import 'package:yt_devops/model/device_obj/prompt_rule_model.dart';

part 'services_model.g.dart';

@JsonSerializable()
class ServicesModel {
  static int serialVersionUID = 1;

  String id;

  String? accessType;

  String name;

  String groupName;

  PromptRuleModel? promptRule;

  List<OutputDataModel> outputData;

  ServicesModel(
      {required this.id,
      required this.accessType,
      required this.groupName,
      required this.name,
      this.promptRule,
      this.outputData = const []});

  factory ServicesModel.fromJson(Map<String, dynamic> json) =>
      _$ServicesModelFromJson(json);

  Map<String, dynamic> toJson() => _$ServicesModelToJson(this);
}
